/*  ----------------------------------------------------------------------------
 *  EuphoricNation
 *  ----------------------------------------------------------------------------
 *  EuphoricEngine v1.0
 *  ----------------------------------------------------------------------------
 *  File:       GameBase.cs
 *  Author:     Shane-PC\Shane
 *  ----------------------------------------------------------------------------
 */

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace EuphoricEngine
{
    public class GameBase : Microsoft.Xna.Framework.Game
    {
        public Engine _engine;
        private GraphicsDeviceManager _graphics;

        public GameBase()
        {
            _graphics = new GraphicsDeviceManager(this);
        }

        protected override void LoadContent()
        {
            _engine = new Engine(this, _graphics);
        }

        protected override void Update(GameTime gameTime)
        {
            _engine.Update(gameTime);

            base.Update(gameTime);
        }

        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            _engine.Draw(gameTime);

            base.Draw(gameTime);
        }
    }
}
